package com.lele.factory;

import com.lele.file.ActionFile;
import com.lele.file.DAOFile;
import com.lele.file.IDAOFile;
import com.lele.file.IServiceFile;
import com.lele.file.SuperFile;
import com.lele.file.ServiceFile;

public class SingleFileFactory {
	public static SuperFile createFile(String Type){
		SuperFile myfile = null;
		if (Type.equals("Action")) {
			myfile = new ActionFile();
		}else if (Type.equals("IService")) {
			myfile = new IServiceFile();
		}else if (Type.equals("Service")) {
			myfile = new ServiceFile();
		}else if (Type.equals("IDAO")) {
			myfile = new IDAOFile();
		}else if (Type.equals("DAO")) {
			myfile = new DAOFile();
		}
		return myfile;
	}
}
